package com.wicket.okrapp.integration;

import com.wicket.okrapp.common.ro.OkrResult;
import com.wicket.okrapp.dal.po.mbg.OmsDualHighIndicatorRelationship;
import com.wicket.okrapp.integration.dto.OmsDualHighIndicatorRelationshipReqDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.util.ArrayList;

/**
 * @author CHS
 * @since 2025-10-02
 *
 *
 * @version 1.0
 */

@FeignClient("app")
public interface FwAppDualHighIndicatorRelationshipClient {


    /**
     * 新增-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/add")
    public OkrResult<String> add(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

    /**
     * 修改-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/update")
    public OkrResult<Boolean> update(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

    /**
     * 删除-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/delete")
    public OkrResult<Boolean> delete(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

    /**
     * 列表-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/list")
    public OkrResult<ArrayList<OmsDualHighIndicatorRelationship>> list(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

    /**
     * 详情-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/detail")
    public OkrResult<OmsDualHighIndicatorRelationship> detail(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

    /**
     * 修改-双高标准框架数据
     */
    @PostMapping("/app/dual/high/indicator/relationship/change")
    public OkrResult<Boolean> change(@RequestBody @Validated OmsDualHighIndicatorRelationshipReqDto obj);

}
